//
//  SEGDigitalCommunity2TenantViewModel.h
//  SEGViewModel
//
//  Created by 山刘 on 2020/6/24.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, SEGDigitalCommunity2UserType) {
    SEGDigitalCommunity2UserType1000 = 1000,//业主
    SEGDigitalCommunity2UserType1001 = 1001,//业主成员
    SEGDigitalCommunity2UserType2000 = 2000,//租户
    SEGDigitalCommunity2UserType2001 = 2001,//租户成员
};

NS_ASSUME_NONNULL_BEGIN

@interface SEGDigitalCommunity2TenantViewModel : NSObject
@property (nonatomic, strong, readonly) RACCommand *requestCommand;
@property (nonatomic, strong, readonly) RACCommand *userTypeCommand;
@property (strong, nonatomic, readonly) RACSubject *messageSubject;

@property (nonatomic, copy) NSString *houseId;
@property (nonatomic, copy) NSString *fullHouseName;
@property (nonatomic, copy) NSString *tel;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, strong) NSString *userType;
@property (nonatomic, copy) NSString *inTime;
@property (nonatomic, copy) NSString *outTime;
// 从认证 重新提交审核进入需要传值，否则可以为空
@property (nonatomic, copy) NSString *relId;

@property (nonatomic, strong) NSArray *userTypeArr;


/// 确认提交按钮的可点击状态
@property (nonatomic, assign) BOOL submitButtonEnabled;

/// 检查 确认提交 按钮可点击的状态
-(void)checkSubmitButtonStatus;

-(BOOL)chcekUserType:(NSString*)type;

- (NSString *)getUserTypeCode;
@end

NS_ASSUME_NONNULL_END
